package com.yztc.ui.home;

import android.content.Context;

import com.yztc.base.IModle;
import com.yztc.base.IPresenter;
import com.yztc.base.IView;
import com.yztc.base.OnLoadListener;
import com.yztc.bean.home.ListFocusBean;
import com.yztc.bean.home.NewBannerListBean;
import com.yztc.bean.home.RollListBean;
import com.yztc.bean.home.TopBannerListBean;
import com.yztc.bean.home.UrlProductImageBean;

import java.util.List;

/**
 * Created by My on 2016/10/6.
 */
public class HomeConstract {

    public interface IHomeView extends IView{
        //显示数据加载错误提示
        public void showErrorMsg(Throwable e);
        //添加top标语图片
        public void addHelloImage(List<TopBannerListBean> topBannerList);
        //添加适配广告轮播图
        public void addVPImages(List<ListFocusBean> mListFocusBean);
        //添加产品图片ProductImage
        public void addProductImages(UrlProductImageBean urlProductImageBean);
        //适配RecycleView的item数据
        public void addToRecAdapter(Object object);
        //整站精选
        public void addJingXuanData(RollListBean rollListBean);
        //新品上市
        public void addShangShiData(RollListBean rollListBean);
        //获取新品 上市下面 的两张图片和结尾两张图片
        public void addFourImages(List<NewBannerListBean> newBannerList);


    }
    public interface IHomeModle extends IModle{
        public void LoadNewsData(String baseUrl,OnLoadListener listener);
    }
    public interface IHomePresenter extends IPresenter{
        public void loadData(Context context);
    }
}
